Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added deploy script for checking deployments #738

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

ChaoticTempest
Copy link
Member

Now we can check whether or not our deployments are going to break state for contracts or not.

You can check against dev by running:

cargo test -- run_dev --show-output


let status = status.await?;
dbg!(&status);
assert!(status.is_failure(), "expected to timeout");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible fail due to deserialize certain state failed (caused by migration)? Should we check execution outcome fail reason

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it's possible to fail, which is why this script just checks if we can do a migration. The dbg!(&status) will show us the cause of the migration failing

@ChaoticTempest
Copy link
Member Author

I added in CI checks for doing this deploy check. Just do the init_running for dev for now when you guys get the chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants